package com.kaifamiao.N0720;

public class Node1 {
    public static void main(String[] args) {
        double[] nums = {12,34,1,3,6,7,53,4,65,43,67,45};
        for(int i = 0;i < nums.length - 1;i ++){
            int f = i;
            for(int x = f+1;x < nums.length;x++) {
                if (nums[f] < nums[x]) {
                    f = x;
                }
            }
                    double y = nums [i];
                    nums[i] = nums[f];
                    nums[f] = y;
                }for(int w = 0;w < nums.length;w++){
            System.out.println(nums[w]);
        }
    }
}